package xyz.event;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Service;

@Service
public class MsgService implements ApplicationListener<UserLoginEvent>{

	@Override
	public void onApplicationEvent(UserLoginEvent event) {
		 System.out.println("短信服务接到通知，给 " + event.getSource() + " 发送邮件...");// <3>
	}

}
